import express from 'express';
import { getAuditorById, registerAuditor, loginAuditor, getAuditors } from '../controllers/auditorsController.js';

const router = express.Router();


router.get('/', getAuditors);
// 获取用户详情
router.get('/:id', getAuditorById);

// 注册用户
router.post('/register', registerAuditor);

// 用户登录
router.post('/login', loginAuditor);

export default router;